package  
{
	import org.flixel.*;
	/**
	 * ...
	 * @author morgan
	 */
	public class RevealObject extends FlxSprite
	{
		
		public function RevealObject(x:int, y:int, image:Class) 
		{
			super(x, y, image);
		}
	
		override public function update():void 
		{
			super.update();
			var c:uint = GameState.ref.hazy.unblurMask.getPixel32(x + width / 2, y + height / 2);
			alpha = FlxU.getRGBA(c)[0] / 255.0;
		}
		
	}

}